home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / src / jpeg / makefile.mc5 < prev    next >
Makefile  |  1994-08-01  |  6KB  |  162 lines

  1. # Makefile for Independent JPEG Group's software
  2.  
  3. # This makefile is for Microsoft C for MS-DOS, version 5.x.
  4.  
  5. # Read SETUP instructions before saying "make" !!
  6.  
  7. # Microsoft's brain-damaged version of make uses nonstandard syntax (a blank
  8. # line is needed to terminate a command list) and it simply scans the rules
  9. # in order, rather than doing a true dependency-tree walk.  Furthermore,
  10. # expanded command lines can't exceed 128 chars (this is a DOS bug, not
  11. # make's fault); so we can't just name all the objectfiles in the link steps.
  12. # Instead we shove each objectfile into a library as it is made, and link
  13. # from the library.  The objectfiles are also kept separately as timestamps.
  14.  
  15. # You may need to adjust these cc options:
  16. CFLAGS=  /AS /I. /W3 /Oail /Gs   # NB: /Gs turns off stack oflo checks
  17. LDFLAGS= /Fm /F 2000             # /F hhhh  sets stack size (in hex)
  18. # In particular:
  19. #   Add /DMSDOS if your compiler doesn't automatically #define MSDOS.
  20. #   Add /DMEM_STATS to enable gathering of memory usage statistics.
  21. # You might also want to add /G2 if you have an 80286, etc.
  22.  
  23.  
  24. # source files (independently compilable files)
  25. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  26.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  27.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  28.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  29.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  30.         jwrppm.c jwrrle.c jwrtarga.c
  31. # virtual source files (not present in distribution file, see SETUP)
  32. VIRTSOURCES= jmemsys.c
  33. # system-dependent implementations of virtual source files
  34. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  35.         jmemdosa.asm
  36. # files included by source files
  37. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  38. # documentation, test, and support files
  39. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  40. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  41.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  42.         makefile.bcc makefile.mms makefile.vms makvms.opt
  43. OTHERFILES= ansi2knr.c ckconfig.c example.c
  44. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  45. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  46.         $(OTHERFILES) $(TESTFILES)
  47. # objectfiles common to cjpeg and djpeg
  48. COMOBJECTS= jutils.obj jerror.obj jmemmgr.obj jmemsys.obj jmemdosa.obj
  49. # compression objectfiles
  50. CLIBOBJECTS= jcmaster.obj jcdeflts.obj jcarith.obj jccolor.obj jcexpand.obj \
  51.         jchuff.obj jcmcu.obj jcpipe.obj jcsample.obj jfwddct.obj \
  52.         jwrjfif.obj jrdgif.obj jrdppm.obj jrdrle.obj jrdtarga.obj
  53. COBJECTS= jcmain.obj $(CLIBOBJECTS) $(COMOBJECTS)
  54. # decompression objectfiles
  55. DLIBOBJECTS= jdmaster.obj jddeflts.obj jbsmooth.obj jdarith.obj jdcolor.obj \
  56.         jdhuff.obj jdmcu.obj jdpipe.obj jdsample.obj jquant1.obj \
  57.         jquant2.obj jrevdct.obj jrdjfif.obj jwrgif.obj jwrppm.obj \
  58.         jwrrle.obj jwrtarga.obj
  59. DOBJECTS= jdmain.obj $(DLIBOBJECTS) $(COMOBJECTS)
  60. # These objectfiles are included in libjpeg.lib
  61. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  62.  
  63.  
  64. # inference rule used for all compilations except jcmain.c, jdmain.c
  65. # notice that objectfile is also inserted into libjpeg.lib
  66. .c.obj:
  67.     cl $(CFLAGS) /c $*.c
  68.     lib libjpeg -+$*.obj;
  69.  
  70. # inference rule for assembly code
  71. .asm.obj:
  72.     masm /mx $*;
  73.     lib libjpeg -+$*.obj;
  74.  
  75.  
  76. jbsmooth.obj : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  77.  
  78. jcarith.obj : jcarith.c jinclude.h jconfig.h jpegdata.h
  79.  
  80. jccolor.obj : jccolor.c jinclude.h jconfig.h jpegdata.h
  81.  
  82. jcdeflts.obj : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  83.  
  84. jcexpand.obj : jcexpand.c jinclude.h jconfig.h jpegdata.h
  85.  
  86. jchuff.obj : jchuff.c jinclude.h jconfig.h jpegdata.h
  87.  
  88. jcmain.obj : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  89.     cl $(CFLAGS) /c $*.c
  90.  
  91. jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpegdata.h
  92.  
  93. jcmcu.obj : jcmcu.c jinclude.h jconfig.h jpegdata.h
  94.  
  95. jcpipe.obj : jcpipe.c jinclude.h jconfig.h jpegdata.h
  96.  
  97. jcsample.obj : jcsample.c jinclude.h jconfig.h jpegdata.h
  98.  
  99. jdarith.obj : jdarith.c jinclude.h jconfig.h jpegdata.h
  100.  
  101. jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpegdata.h
  102.  
  103. jddeflts.obj : jddeflts.c jinclude.h jconfig.h jpegdata.h
  104.  
  105. jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpegdata.h
  106.  
  107. jdmain.obj : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  108.     cl $(CFLAGS) /c $*.c
  109.  
  110. jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpegdata.h
  111.  
  112. jdmcu.obj : jdmcu.c jinclude.h jconfig.h jpegdata.h
  113.  
  114. jdpipe.obj : jdpipe.c jinclude.h jconfig.h jpegdata.h
  115.  
  116. jdsample.obj : jdsample.c jinclude.h jconfig.h jpegdata.h
  117.  
  118. jerror.obj : jerror.c jinclude.h jconfig.h jpegdata.h
  119.  
  120. jquant1.obj : jquant1.c jinclude.h jconfig.h jpegdata.h
  121.  
  122. jquant2.obj : jquant2.c jinclude.h jconfig.h jpegdata.h
  123.  
  124. jfwddct.obj : jfwddct.c jinclude.h jconfig.h jpegdata.h
  125.  
  126. jrevdct.obj : jrevdct.c jinclude.h jconfig.h jpegdata.h
  127.  
  128. jutils.obj : jutils.c jinclude.h jconfig.h jpegdata.h
  129.  
  130. jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  131.  
  132. jrdjfif.obj : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  133.  
  134. jrdgif.obj : jrdgif.c jinclude.h jconfig.h jpegdata.h
  135.  
  136. jrdppm.obj : jrdppm.c jinclude.h jconfig.h jpegdata.h
  137.  
  138. jrdrle.obj : jrdrle.c jinclude.h jconfig.h jpegdata.h
  139.  
  140. jrdtarga.obj : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  141.  
  142. jwrjfif.obj : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  143.  
  144. jwrgif.obj : jwrgif.c jinclude.h jconfig.h jpegdata.h
  145.  
  146. jwrppm.obj : jwrppm.c jinclude.h jconfig.h jpegdata.h
  147.  
  148. jwrrle.obj : jwrrle.c jinclude.h jconfig.h jpegdata.h
  149.  
  150. jwrtarga.obj : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  151.  
  152. jmemsys.obj : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  153.  
  154. jmemdosa.obj : jmemdosa.asm
  155.  
  156.  
  157. cjpeg.exe: $(COBJECTS)
  158.     cl /Fecjpeg.exe jcmain.obj libjpeg.lib $(LDFLAGS)
  159.  
  160. djpeg.exe: $(DOBJECTS)
  161.     cl /Fedjpeg.exe jdmain.obj libjpeg.lib $(LDFLAGS)
  162.